package com.book.service;

import com.book.dao.StudentMapper;
import com.book.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 落叶的思恋 on 2017/5/3.
 */
@Service("StudentInfoService")
public class StudentInfoServiceImp implements StudentInfoService {
    @Autowired
    StudentMapper studentMapper;



    @Override
    public Student login(String name, String password) {
        return studentMapper.login(name,password);
    }

    @Override
    public int updateByPrimaryKey(Student record) {
        return studentMapper.updateByPrimaryKey(record);
    }

    @Override
    public Student selectByPrimaryKey(Integer studentId) {
        return studentMapper.selectByPrimaryKey(studentId);
    }
}
